package cn.wolfcode.repository;

import cn.wolfcode.domain.Banner;
import cn.wolfcode.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface BannerRepository extends MongoRepository<Banner,String>{
    List<Banner> findByTypeAndState(int type, int state, Pageable pageable);
}
